% TEST_ID: LANG-CONTROL-FLOW-0008
% CATEGORY: language/control-flow
% 基本的 for 循环

function test_for_loop
    x = 0;
    for i = 1:10
        if i == 5
            x = i;
        end
    end

    assert(x == 5)
end

